<template>
  <Dialog v-if="visible" v-model="visible" title="操作日志" @close="closeDialog" :width="1100">
    <OperationLogList :bizId="bizId"></OperationLogList>
  </Dialog>
</template>

<script setup lang="ts">
  import { ref, unref, nextTick, watch, reactive } from 'vue'
  import { ElTree, ElInput, ElButton, ElPopconfirm, ElCascader } from 'element-plus'
  import OperationLogList from './operation-log-list.vue'
  const visible = ref(false)
  const bizId = ref()

  const emit = defineEmits(['close']);

  // 打开弹框
  const openDialog = (biz_id?: any) => {
    bizId.value = biz_id
    visible.value = true
  }

  // 关闭弹框
  const closeDialog = () => {
    // 发送关闭弹框事件 通知useOperationLogDialog卸载组件
    emit('close');
  }

  defineExpose({
    openDialog
  })
</script>

